#include<iostream>
using namespace std;
int main()
{
    int n=0,i=42;
    int *p=&n,*q=&i;
    *p=42;
    p=q;
    cout<<"p is "<<p<<endl;
    cout<<"i is "<<i<<endl;
    cout<<"n is "<<n<<endl;
}